import React, { Component } from 'react';

class WechatIndex extends Component {
  constructor(props) {
    super(props);
    this.state = {};
  }

  componentDidMount() {
    // appid 公众号唯一标识
    // redirect_uri 授权后回调的地址
    // response_type 返回类型 填写code
    // scope snsapi_userinfo 弹出授权页面 snsapi_base 不弹出授权页面
    // 其他参数无需更改
    window.location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxad79fe86306e5a39&redirect_uri=http://smart.btfxm.com/bindWechat&response_type=code&scope=snsapi_userinfo&state=1#wechat_redirect';
  }

  render() {
    return (
      <div />
    );
  }
}
export default (WechatIndex);
